﻿package cn.valorin.command.sub;

import static cn.valorin.configuration.languagefile.MessageSender.sm;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import cn.valorin.command.SubCommand;
import cn.valorin.command.way.AdminCommands;

public class AdminHelp extends SubCommand implements AdminCommands{

	public AdminHelp() {
		super("adminhelp", "ah");
	}

	@Override
	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) 
	{
	  Player p = null;
      if (sender instanceof Player)
      { p = (Player)sender; }
      sm("",p);
      sm("&3&lDuan&b&l&oWu &f&l>> &a管理员帮助",p,false);
      sm("&b/duanwu reload c &f- &a重载config.yml",p,false);
      sm("&b/duanwu reload l &f- &a重载所有语言文件",p,false);
      sm("",p);
	  return true;
	}

}
